Fix Fwindow_text_pixel_size and fit-frame-to-buffer.
authormartin rudalics <rudalics@gmx.at>
Tue, 28 Jan 2014 09:45:37 +0000 (10:45 +0100)
committermartin rudalics <rudalics@gmx.at>
Tue, 28 Jan 2014 09:45:37 +0000 (10:45 +0100)
commit31ff0689b05204c1a1a6e794cf4e25308c83a542
treedee9effde9728eab37be7d0e028d3347e22bf9d0
parent5c594487ad976bdf76eeb0917a9e0df7d385677d
Fix Fwindow_text_pixel_size and fit-frame-to-buffer.

* xdisp.c (last_max_ascent): Re-remove after erroneously
reintroducing it on 2013-11-30 and abolishing Dmitry's removal
from 2013-03-29.
(move_it_to): Re-remove reference to last_max_ascent.
(Fwindow_text_pixel_size): Add iterator's max_ascent and
max_descent here instead of calling line_bottom_y.  Fix
doc-string.

* window.el (fit-frame-to-buffer): Fix calculations for margins and
height constraints.
lisp/ChangeLog
lisp/window.el
src/ChangeLog
src/xdisp.c